package com.tfy.liquor.service;

import com.tfy.liquor.bean.MyPage;
import com.tfy.liquor.bean.SystemConfiguration;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public interface SystemConfigurationService {
    /**
     * 添加信息
     * @param systemConfiguration
     * @return
     */
    Boolean addSystemConfiguration(SystemConfiguration systemConfiguration);

    /**
     * 根据id获取信息
     * @param id
     * @return
     */
    SystemConfiguration getSystemConfigurationById(Integer id);

    /**
     * 根据title获取信息
     * @param title
     * @return
     */
    SystemConfiguration getSystemConfigurationByTitle(String title);

    /**
     * 修改使用状态
     * @param systemConfiguration
     * @return
     */
    Boolean editSystemConfigurationStatus(SystemConfiguration systemConfiguration);

    /**
     * 获取系统配置信息
     * @return
     */
    MyPage getSystemConfiguration(Integer pageNum, Integer pageSize);
}
